package me.pinion.controller;

import me.pinion.XTimeConfig;
import me.pinion.controller.annotation.RouteBind;

import java.io.IOException;

@RouteBind("/")
public class MainController extends Controller{
    public void index(){
        render("/index.ftl");
    }

    public void loadLocalBook(){
        try {
            XTimeConfig.loadLocalBook();
        } catch (IOException e) {
            e.printStackTrace();
        }
        renderText("Ok");
    }

}
